package net.zigin.nhi.could.waste.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import net.zigin.nhi.could.waste.service.NoticeReceiveService;

import net.zigin.nhi.could.waste.vo.JsonForResult;
import net.zigin.nhi.could.waste.vo.SysUserStaffVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * NoticeReceive控制器类
 * @ClassName: NoticeReceiveController
 * @author mgw1986
 * @date 2021-9-14 15:44:52
 * @version V1.0
 */
@Api(tags = "公告接收人管理")
@RestController
@RequestMapping("/noticeReceive")
public class NoticeReceiveController extends BaseController {
	@Autowired
	private NoticeReceiveService noticeReceiveService;

	@ApiOperation("当前医院用户")
	@GetMapping("/getAllHospitalBaseStaff")
	public JsonForResult<List<SysUserStaffVo>> getAllHospitalBaseStaff(){
		List<SysUserStaffVo> list = noticeReceiveService.getAllHospitalBaseStaff();
		return JsonForResult.<List<SysUserStaffVo>>builder().data(list).success(true).build();
	}

}
